var msg = new Object();
msg.error = function (info, Fn) {
    layer.msg(info, {
        icon: 2,
        time: 1500
    }, function () {
        if (Fn != undefined) {
            Fn();
        }
    })
}

msg.success = function (info, Fn) {
    layer.msg(info, {
        icon: 1,
        time: 1500
    }, function () {
        if (Fn != undefined) {
            Fn();
        }
    });
}

